package com.btkjgc.framework.report;

import java.util.ArrayList;
import java.util.List;

public class Chart
{
	String name = "";
	List<Line> lines = new ArrayList<Line>();
	List<XAxis> xAxis = new ArrayList<XAxis>();

	public Chart(String name, List<Line> lines, List<XAxis> xAxis)
	{
		this.name = name;
		this.lines = lines;
		this.xAxis = xAxis;
	}

	public Chart()
	{
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public List<Line> getLines()
	{
		return lines;
	}

	public void setLines(List<Line> lines)
	{
		this.lines = lines;
	}

	public List<XAxis> getxAxis()
	{
		return xAxis;
	}

	public void setxAxis(List<XAxis> xAxis)
	{
		this.xAxis = xAxis;
	}

	public Line addLine(String name)
	{
		Line line = new Line();
		line.setLineName(name);
		this.lines.add(line);
		return line;
	}

	public void addxAxis(XAxis xa)
	{
		this.xAxis.add(xa);
	}

}
